#include <jni.h>

JNIEnv* jni_env;
JavaVM* java_vm;
jclass cls;

JNIEXPORT jint JNICALL Java_com_tx_dms_sdk_dmsCreate(JNIEnv* env, jobject obj, jstring models_path)

{
    jni_env = env;
    jni_env->GetJavaVM(&java_vm);
}

void txDmsCallback(const TXDmsResult* result, void* user_data) {
    JNIEnv* jni_env1;
    java_vm->AttachCurrentThread(&jni_env1, NULL);

    jclass cls_ = jni_env1->FindClass("com/tx/dms/TXDmsResult");
    if (cls_ == NULL) {
        LOG_FATAL("TXDmsCallback", " TXDmsResult class == null");
    }
}